package se.teamstat.client.gui.admin.edit;

import se.teamstat.client.gui.admin.player.EntityTabPanel;

import com.gwtext.client.widgets.Panel;

public class AdminPanel extends Panel {
	
	private AdminPanel() {
		init();
		
	}
	
	public static Panel createPanel() {
		Panel panel = new AdminPanel();
		return panel;
	}
	
	private void init() {
		setId("admin-item");
		setBorder(false);
		setAutoWidth(true);
		setAutoHeight(true);
		setTitle("Admin");
		
		Panel entityTabPanel = createEntityTabPanel();
		add(entityTabPanel);
	}
	
	private Panel createEntityTabPanel() {
		Panel entityTab = EntityTabPanel.createPanel();
		return entityTab;
	}
}
